﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BookStore.Platform.objects;
using BookStore.WebAnalyzer;

namespace BookStore.Platform.apis
{
    public interface IBookListApi
    {
        IList<Book> GetCompletedBooksFromSingleWebPage(string url, Guid webSiteId);

        int GetMaxPageNumber(string url);
    }

    public abstract class BookListApi: IBookListApi
    {
        //private WebClient webClient;
        public IWebAnalyzerApi webAnalyzerApi { get; set; }
        public BookListApi(IWebAnalyzerApi webAnalyzerApi) //WebClient webClient
        {
            this.webAnalyzerApi = webAnalyzerApi;
        }
        #region IBookListApi Members

        public abstract IList<objects.Book> GetCompletedBooksFromSingleWebPage(string url, Guid webSiteId);

        public abstract int GetMaxPageNumber(string url);
        #endregion
    }
}
